package kr.co.doriclassic.chapter15;

import java.awt.Graphics;

import javax.swing.JPanel;

public class MyPanel extends JPanel {

	public MyPanel() {
	}
	
	@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		
			g.drawString("Hello Java", 10, 10);
			g.drawLine(10, 20, 100, 20);
			g.drawRect(10, 30, 100, 100);
		
		System.out.println("MyPanel - paintComponent Call");
	}	
}
